﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.IO;

namespace AVCWizard
{
    /// <summary>
    /// Interaktionslogik für About.xaml
    /// </summary>
    public partial class About : Window
    {
        public About(int devLevel)
        {
            InitializeComponent();
            DateTime date = File.GetCreationTime(System.Reflection.Assembly.GetExecutingAssembly().Location);
            string ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            BuildLabel.Content = date.ToShortDateString() + "   (" + date.ToShortTimeString() + ")";
            switch (devLevel)
            {
                case 0: 
                    VersionLabel.Content = ver + "  (alpha)"; 
                    break;
                case 1: 
                    VersionLabel.Content = ver + "  (beta)"; 
                    break;
                default:
                    VersionLabel.Content = ver;
                    break;
            }
        }
    }
}
